﻿#region Copyright

// Majesty of Omega - The next evolution of macro management space strategy
// 
// Copyright 2007-2009 André Claaßen
// 
// This file is protected by the terms and conditions of the
// Microsoft Community License (Ms-CL 1.1), a copy of which should
// have been distributed along with this software. If not,
// you may find the license information at the following URL:
// 
// http://www.microsoft.com/resources/sharedsource/licensingbasics/communitylicense.mspx

#endregion

using System.Reflection;

namespace Majesty_of_Omega.GUI.Utility
{
    /// <summary>
    /// Utility class for the applicationversion property
    /// </summary>
    public static class MyApplicationInfo
    {
        /// <summary>
        /// Gets the current version of Majesty of Omega
        /// </summary>
        /// <value>The application version.</value>
        public static string ApplicationVersion
        {
            get
            {
                Assembly asm = Assembly.GetAssembly(typeof(MyApplicationInfo));
                string[] parts = asm.FullName.Split(',');
                string versionInfo = parts[1];
                string[] versionValues = versionInfo.Split('=');
                return "v" + versionValues[1];
            }
        }
    }
}